package org.lql.shop.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author: lql
 * @date: 2022/7/2 00:34
 * @description: 用户表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "shop_user")
public class ShopUserEntity {
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    @TableField(value = "tenant_id")
    private Long tenantId;

    @TableField(value = "user_name")
    private String userName;
}
